<?PHP

try {
$cli = new SoapClient(null, array(
        // 'location' => 'http://3.3.3.9:81/soapsrv.php',
        'location' => 'http://3.3.3.9/soapsrv.php',
        'uri'  => 'soapsrv.php'
));

// var_dump($cli);
// echo $cli->getLastRequestHeaders();
echo $cli->getString(), PHP_EOL;
echo $cli->__soapCall('add', array(3, 5)), PHP_EOL;

} catch (Exception $e) {
    echo 'Exception:', $e->getMessage(), PHP_EOL;
}
// echo $cli->add(3, 5), PHP_EOL;

